package com.gitee.chili.leisure.enums;

import com.gitee.chili.leisure.util.Enum;
import lombok.Getter;

/**
 * GameType
 *
 * @author week solider
 * @since 2020.09.23
 */
@Getter
public enum GameType {

    XL(3, "血流"),
    XZ(4, "血战"),
    ;

    private final Integer code;

    private final String value;

    GameType(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static GameType valueOf(int gameType){
        return Enum.valueOf(GameType.class, gr -> gr.getCode().equals(gameType));
    }
}
